#!/usr/bin/env python
# -*- coding: utf-8 -*-


class TaskMgr:
    def __init__(self, app, session):
        self.app = app
        self.session = session
        self.app.logger.warning(f'{self.__class__}: method __init__() is empty')


    def destroy(self):
        self.session = None
        self.app = None
        

    def __del__(self):
        self.destroy()


    def get_tasks(self):
        app.logger.warning(f'{self.__class__}: method get_tasks() is empty')
        return { "code": 500, "content": {"message": f'{self.__class__}: method get_tasks() is empty'}}


    def open_task(self, task_id):
        app.logger.warning(f'{self.__class__}: method open_task() is empty')
        return { "code": 500, "content": {"message": f'{self.__class__}: method open_task() is empty'}}


    def update_task(self):
        app.logger.warning(f'{self.__class__}: method update_task() is empty')
        return { "code": 500, "content": {"message": f'{self.__class__}: method update_task() is empty'}}


    def sched_task(self):
        app.logger.warning(f'{self.__class__}: method sched_task() is empty')
        return { "code": 500, "content": {"message": f'{self.__class__}: method sched_task() is empty'}}


    def new_task(self):
        app.logger.warning(f'{self.__class__}: method new_task() is empty')
        return { "code": 500, "content": {"message": f'{self.__class__}: method new_task() is empty'}}


    def delete_task(self):
        app.logger.warning(f'{self.__class__}: method delete_task() is empty')
        return { "code": 500, "content": {"message": f'{self.__class__}: method delete_task() is empty'}}